﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SQLite;

namespace MetroCashLib.DataInfo
{
    /// <summary>
    /// Describe a  transaction
    /// </summary>
    public class Transaction
    {
        [AutoIncrement, PrimaryKey]
        public int Id { get; set; }

        public int AccountFromId { get; set; }

        [Ignore]
        public Account AccountFrom { get; set; }

        public int AccountToId { get; set; }

        [Ignore]
        public Account AccountTo { get; set; }

        public double Amount { get; set; }

        [MaxLength(250)]
        public string Description { get; set; }

        public DateTime DateRegistered { get; set; }

        public DateTime DateCreated { get; set; }

        public string Meta1 { get; set; }
    }
}
